package com.qd.common.panda.domain.entity.rule;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 起步价,比如：前两个小时五块,以后每小时3元
 * {
 * "startHour": 2,
 * "startPrice": 500,
 * "price": 300
 * }
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class Rule2DTO extends BaseRuleDTO {
    private Integer startHour;
    private BigDecimal startPrice;

    @Override
    public void freeData() {
        this.startHour = null;
        this.startPrice = null;
        super.freeData();
    }
}